{"ast":null,"code":"import raf from \"rc-util/es/raf\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport { useRef } from 'react';\nimport Tooltip from '../tooltip';\nconst SliderTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n  const {\n    open\n  } = props;\n  const innerRef = useRef(null);\n  const rafRef = useRef(null);\n  function cancelKeepAlign() {\n    raf.cancel(rafRef.current);\n    rafRef.current = null;\n  }\n  function keepAlign() {\n    rafRef.current = raf(() => {\n      var _a;\n      (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.forcePopupAlign();\n      rafRef.current = null;\n    });\n  }\n  React.useEffect(() => {\n    if (open) {\n      keepAlign();\n    } else {\n      cancelKeepAlign();\n    }\n    return cancelKeepAlign;\n  }, [open, props.title]);\n  return /*#__PURE__*/React.createElement(Tooltip, Object.assign({\n    ref: composeRef(innerRef, ref)\n  }, props));\n});\nexport default SliderTooltip;","map":{"version":3,"names":["raf","composeRef","React","useRef","Tooltip","SliderTooltip","forwardRef","props","ref","open","innerRef","rafRef","cancelKeepAlign","cancel","current","keepAlign","_a","forcePopupAlign","useEffect","title","createElement","Object","assign"],"sources":["/data/messenger.client/node_modules/antd/es/slider/SliderTooltip.js"],"sourcesContent":["import raf from \"rc-util/es/raf\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport { useRef } from 'react';\nimport Tooltip from '../tooltip';\nconst SliderTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n  const {\n    open\n  } = props;\n  const innerRef = useRef(null);\n  const rafRef = useRef(null);\n  function cancelKeepAlign() {\n    raf.cancel(rafRef.current);\n    rafRef.current = null;\n  }\n  function keepAlign() {\n    rafRef.current = raf(() => {\n      var _a;\n      (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.forcePopupAlign();\n      rafRef.current = null;\n    });\n  }\n  React.useEffect(() => {\n    if (open) {\n      keepAlign();\n    } else {\n      cancelKeepAlign();\n    }\n    return cancelKeepAlign;\n  }, [open, props.title]);\n  return /*#__PURE__*/React.createElement(Tooltip, Object.assign({\n    ref: composeRef(innerRef, ref)\n  }, props));\n});\nexport default SliderTooltip;"],"mappings":"AAAA,OAAOA,GAAG,MAAM,gBAAgB;AAChC,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,MAAM,QAAQ,OAAO;AAC9B,OAAOC,OAAO,MAAM,YAAY;AAChC,MAAMC,aAAa,GAAG,aAAaH,KAAK,CAACI,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAClE,MAAM;IACJC;EACF,CAAC,GAAGF,KAAK;EACT,MAAMG,QAAQ,GAAGP,MAAM,CAAC,IAAI,CAAC;EAC7B,MAAMQ,MAAM,GAAGR,MAAM,CAAC,IAAI,CAAC;EAC3B,SAASS,eAAe,GAAG;IACzBZ,GAAG,CAACa,MAAM,CAACF,MAAM,CAACG,OAAO,CAAC;IAC1BH,MAAM,CAACG,OAAO,GAAG,IAAI;EACvB;EACA,SAASC,SAAS,GAAG;IACnBJ,MAAM,CAACG,OAAO,GAAGd,GAAG,CAAC,MAAM;MACzB,IAAIgB,EAAE;MACN,CAACA,EAAE,GAAGN,QAAQ,CAACI,OAAO,MAAM,IAAI,IAAIE,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,EAAE,CAACC,eAAe,EAAE;MACjFN,MAAM,CAACG,OAAO,GAAG,IAAI;IACvB,CAAC,CAAC;EACJ;EACAZ,KAAK,CAACgB,SAAS,CAAC,MAAM;IACpB,IAAIT,IAAI,EAAE;MACRM,SAAS,EAAE;IACb,CAAC,MAAM;MACLH,eAAe,EAAE;IACnB;IACA,OAAOA,eAAe;EACxB,CAAC,EAAE,CAACH,IAAI,EAAEF,KAAK,CAACY,KAAK,CAAC,CAAC;EACvB,OAAO,aAAajB,KAAK,CAACkB,aAAa,CAAChB,OAAO,EAAEiB,MAAM,CAACC,MAAM,CAAC;IAC7Dd,GAAG,EAAEP,UAAU,CAACS,QAAQ,EAAEF,GAAG;EAC/B,CAAC,EAAED,KAAK,CAAC,CAAC;AACZ,CAAC,CAAC;AACF,eAAeF,aAAa"},"metadata":{},"sourceType":"module"}